package org.zfm.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zfm.system.domain.Dictionary;
import org.zfm.system.mapper.DictionaryitemMapper;
import org.zfm.system.service.IDictionaryService;
import org.zfm.base.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zara
 * @since 2022-10-21
 */
@Service
public class DictionaryServiceImpl extends BaseServiceImpl<Dictionary> implements IDictionaryService {
    @Autowired
    private DictionaryitemMapper dictionaryitemMapper;
    @Override
    @Transactional
    public void delete(Serializable id) {
        dictionaryitemMapper.deleteByDictionaryId(id);
        super.delete(id);
    }
}
